package com.weixin.thread;

/**
 * @ClassName ThreadStart
 * @Description
 * @date 2022/2/22 13:12
 * @author: wx
 * @Version 1.0
 */
public class ThreadStart {
    public static void main(String[] args) {

        Thread01 thread01 = new Thread01();
        thread01.start();
        System.out.println("hello");
        Thread04 thread = new Thread04();
        Thread thread1 = new Thread(thread);
        thread1.start();
        System.out.println(thread1.getState());
        System.out.println("world");

        new Thread() {
            @Override
            public void run() {
                System.out.println(Thread.currentThread().getName());
                System.out.println();
            }
        }.start();
    }
}
